package org.example.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("exam_paper")  // 映射到数据库中的表
public class ExamPaperEntity {

    @TableId(type = IdType.AUTO)  // 主键自增
    private Long examId;  // 试卷ID

    private String exampaperName;  // 试卷名称
    private String exampaperDescription;  // 试卷描述
    private LocalDateTime createTime;  // 创建时间
    private LocalDateTime updateTime;  // 更新时间
    private Integer createdBy;  // 创建者ID
private  Integer examName;
    // Getters and Setters
//    public Integer getExamId() {
//        return examId;
//    }

    public void setExamId(Long examId) {
        this.examId = examId;
    }

    public String getExampaperName() {
        return exampaperName;
    }

    public void setExamName(String exampaperName) {
        this.exampaperName = exampaperName;
    }

    public String getExamDescription() {
        return exampaperDescription;
    }

    public void setExamDescription(String exampaperDescription) {
        this.exampaperDescription = exampaperDescription;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(Integer createdBy) {
        this.createdBy = createdBy;
    }
}
